﻿#region Copyright Statement
//////////////////////////////////////////////
//                                          //
//      Created By:   Ali Ghomi             //
//      Date:         21 Jan 2010           //
//////////////////////////////////////////////
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ORMAC.Attributes
{
    /// <summary>
    /// attribute class to help mapping between xml nodes and classes/properties
    /// each xml element (with attributes) maybe converted to a table in dataset and the table may be converted to a class using table attribute
    /// </summary>
    [AttributeUsage(AttributeTargets.All, AllowMultiple = true)]
    public class JoinAttribute:BaseAttribute
    {
        /// <summary>
        /// column used to join parent table to child table
        /// </summary>
        public string ParentCol
        {
            get
            {
                return m_ParentCol;
            }
            set
            {
                m_ParentCol = value;
            }
        }

        private string  m_ParentCol;
        /// <summary>
        /// column used to join parent table to child table
        /// </summary>
        public string ChildCol
        {
            get
            {
                return m_ChildCol;
            }
            set
            {
                m_ChildCol = value;
            }
        }

        private string m_ChildCol;

    }
}
